\hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay}{}\section{com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay类 参考}
\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay}\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}


类 com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay 继承关系图\+:
% FIG 0


com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay 的协作图\+:
% FIG 1
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ade510d1e98c952e6f727e61fe05d5cea}{Transit\+Route\+Overlay}} (Baidu\+Map baidu\+Map)
\item 
final List$<$ Overlay\+Options $>$ \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_aba73bc8e4d60a3f1208e68d78c05b955}{get\+Overlay\+Options}} ()
\item 
void \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_a8e67aa989fac5f6a75bd9955a67879ec}{set\+Data}} (Transit\+Route\+Line route\+Overlay)
\item 
Bitmap\+Descriptor \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_a1cdbf1bbe11cd3dd4a1678250cc015fd}{get\+Start\+Marker}} ()
\item 
Bitmap\+Descriptor \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_af2b882531defd4b75bb1a46c3f1dc891}{get\+Terminal\+Marker}} ()
\item 
int \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ae22fae63264216455a4b9a5a5201655f}{get\+Line\+Color}} ()
\item 
boolean \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ae2da017d71072bbef3c78f5e80e9b6ee}{on\+Route\+Node\+Click}} (int i)
\item 
final boolean \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ab628b1ab3c01d0f63163b6decdb233fe}{on\+Marker\+Click}} (Marker marker)
\item 
boolean \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ad79918494731b226eb02bd89da111b52}{on\+Polyline\+Click}} (Polyline polyline)
\end{DoxyCompactItemize}
\subsection*{Private 成员函数}
\begin{DoxyCompactItemize}
\item 
Bitmap\+Descriptor \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_aaab0be1a9894c80259b0d97962c5f0cf}{get\+Icon\+For\+Step}} (Transit\+Route\+Line.\+Transit\+Step step)
\end{DoxyCompactItemize}
\subsection*{Private 属性}
\begin{DoxyCompactItemize}
\item 
Transit\+Route\+Line \mbox{\hyperlink{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ab902ab9ad543922552443b9a3e09baf3}{m\+Route\+Line}} = null
\end{DoxyCompactItemize}
\subsection*{额外继承的成员函数}


\subsection{详细描述}
用于显示换乘路线的\+Overlay，自3.4.\+0版本起可实例化多个添加在地图中显示 

\subsection{构造及析构函数说明}
\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ade510d1e98c952e6f727e61fe05d5cea}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ade510d1e98c952e6f727e61fe05d5cea}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!TransitRouteOverlay@{TransitRouteOverlay}}
\index{TransitRouteOverlay@{TransitRouteOverlay}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{TransitRouteOverlay()}{TransitRouteOverlay()}}
{\footnotesize\ttfamily com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+Transit\+Route\+Overlay (\begin{DoxyParamCaption}\item[{Baidu\+Map}]{baidu\+Map }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

构造函数


\begin{DoxyParams}{参数}
{\em baidu\+Map} & 该\+Transit\+Route\+Overlay引用的 Baidu\+Map 对象 \\
\hline
\end{DoxyParams}


\subsection{成员函数说明}
\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_aaab0be1a9894c80259b0d97962c5f0cf}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_aaab0be1a9894c80259b0d97962c5f0cf}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!getIconForStep@{getIconForStep}}
\index{getIconForStep@{getIconForStep}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{getIconForStep()}{getIconForStep()}}
{\footnotesize\ttfamily Bitmap\+Descriptor com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+get\+Icon\+For\+Step (\begin{DoxyParamCaption}\item[{Transit\+Route\+Line.\+Transit\+Step}]{step }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}}

\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ae22fae63264216455a4b9a5a5201655f}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ae22fae63264216455a4b9a5a5201655f}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!getLineColor@{getLineColor}}
\index{getLineColor@{getLineColor}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{getLineColor()}{getLineColor()}}
{\footnotesize\ttfamily int com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+get\+Line\+Color (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_aba73bc8e4d60a3f1208e68d78c05b955}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_aba73bc8e4d60a3f1208e68d78c05b955}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!getOverlayOptions@{getOverlayOptions}}
\index{getOverlayOptions@{getOverlayOptions}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{getOverlayOptions()}{getOverlayOptions()}}
{\footnotesize\ttfamily final List$<$Overlay\+Options$>$ com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+get\+Overlay\+Options (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_a1cdbf1bbe11cd3dd4a1678250cc015fd}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_a1cdbf1bbe11cd3dd4a1678250cc015fd}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!getStartMarker@{getStartMarker}}
\index{getStartMarker@{getStartMarker}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{getStartMarker()}{getStartMarker()}}
{\footnotesize\ttfamily Bitmap\+Descriptor com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+get\+Start\+Marker (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

覆写此方法以改变默认起点图标

\begin{DoxyReturn}{返回}
起点图标 
\end{DoxyReturn}
\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_af2b882531defd4b75bb1a46c3f1dc891}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_af2b882531defd4b75bb1a46c3f1dc891}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!getTerminalMarker@{getTerminalMarker}}
\index{getTerminalMarker@{getTerminalMarker}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{getTerminalMarker()}{getTerminalMarker()}}
{\footnotesize\ttfamily Bitmap\+Descriptor com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+get\+Terminal\+Marker (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

覆写此方法以改变默认终点图标

\begin{DoxyReturn}{返回}
终点图标 
\end{DoxyReturn}
\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ab628b1ab3c01d0f63163b6decdb233fe}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ab628b1ab3c01d0f63163b6decdb233fe}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!onMarkerClick@{onMarkerClick}}
\index{onMarkerClick@{onMarkerClick}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{onMarkerClick()}{onMarkerClick()}}
{\footnotesize\ttfamily final boolean com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+on\+Marker\+Click (\begin{DoxyParamCaption}\item[{Marker}]{marker }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ad79918494731b226eb02bd89da111b52}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ad79918494731b226eb02bd89da111b52}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!onPolylineClick@{onPolylineClick}}
\index{onPolylineClick@{onPolylineClick}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{onPolylineClick()}{onPolylineClick()}}
{\footnotesize\ttfamily boolean com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+on\+Polyline\+Click (\begin{DoxyParamCaption}\item[{Polyline}]{polyline }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ae2da017d71072bbef3c78f5e80e9b6ee}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ae2da017d71072bbef3c78f5e80e9b6ee}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!onRouteNodeClick@{onRouteNodeClick}}
\index{onRouteNodeClick@{onRouteNodeClick}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{onRouteNodeClick()}{onRouteNodeClick()}}
{\footnotesize\ttfamily boolean com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+on\+Route\+Node\+Click (\begin{DoxyParamCaption}\item[{int}]{i }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

覆写此方法以改变起默认点击行为


\begin{DoxyParams}{参数}
{\em i} & 被点击的step在 \mbox{\hyperlink{}{com.\+baidu.\+mapapi.\+search.\+route.\+Transit\+Route\+Line\#get\+All\+Step()}} 中的索引 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否处理了该点击事件 
\end{DoxyReturn}
\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_a8e67aa989fac5f6a75bd9955a67879ec}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_a8e67aa989fac5f6a75bd9955a67879ec}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!setData@{setData}}
\index{setData@{setData}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{setData()}{setData()}}
{\footnotesize\ttfamily void com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+set\+Data (\begin{DoxyParamCaption}\item[{Transit\+Route\+Line}]{route\+Overlay }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

设置路线数据


\begin{DoxyParams}{参数}
{\em route\+Overlay} & 路线数据 \\
\hline
\end{DoxyParams}


\subsection{类成员变量说明}
\mbox{\Hypertarget{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ab902ab9ad543922552443b9a3e09baf3}\label{classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1utils_1_1_transit_route_overlay_ab902ab9ad543922552443b9a3e09baf3}} 
\index{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}!mRouteLine@{mRouteLine}}
\index{mRouteLine@{mRouteLine}!com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay@{com.example.akisame\_lin.love\_air2.utils.TransitRouteOverlay}}
\subsubsection{\texorpdfstring{mRouteLine}{mRouteLine}}
{\footnotesize\ttfamily Transit\+Route\+Line com.\+example.\+akisame\+\_\+lin.\+love\+\_\+air2.\+utils.\+Transit\+Route\+Overlay.\+m\+Route\+Line = null\hspace{0.3cm}{\ttfamily [private]}}



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
app/src/main/java/com/example/akisame\+\_\+lin/love\+\_\+air2/utils/\mbox{\hyperlink{_transit_route_overlay_8java}{Transit\+Route\+Overlay.\+java}}\end{DoxyCompactItemize}
